local pozhu = fk.CreateSkill{
  name = "jinld__pozhu",
  tags = { Skill.MainPlace },
}

Fk:loadTranslationTable{
  ["jinld__pozhu"] = "破竹",
  [":jinld__pozhu"] = "主将技，你计算体力上限时减少1个单独的阴阳鱼。出牌阶段限X次，你可以将一张手牌当【出其不意】使用（X为你本回合发动“三陈”的次数）。",

  ["#jinld__pozhu"] = "破竹：你可以将一张手牌当【出其不意】使用",

  ["$jinld__pozhu1"] = "攻其不备，摧枯拉朽！",
  ["$jinld__pozhu2"] = "势如破竹，铁锁横江亦难挡！",
}

pozhu:addEffect("viewas", {
  anim_type = "offensive",
  prompt = "#jinld__pozhu",
  handly_pile = true,
  mute_card = false,
  card_filter = function(self, player, to_select, selected)
    return #selected == 0 and table.contains(player:getHandlyIds(), to_select)
  end,
  view_as = function(self, player, cards)
    if #cards ~= 1 then return end
    local c = Fk:cloneCard("unexpectation")
    c.skillName = pozhu.name
    c:addSubcard(cards[1])
    return c
  end,
  enabled_at_play = function (self, player)
    return (player:usedSkillTimes(pozhu.name, Player.HistoryPhase) < player:usedSkillTimes("jinld__sanchen", Player.HistoryTurn))
  end,
})

return pozhu